// 足迹添加接口
const express = require('express')
// 引入连接池模块
const pool = require('../pool.js')
const router = express.Router()

// 收藏添加
// http://127.0.0.1:3000/zjtj
router.post('/',(req,res,next) => {
    var obj=req.body
    pool.query('insert into qnls_foot set ?',[obj],(err,r) => {
        if(err){
            return next(err)
        }
        res.send({
            code:200,msg:'添加成功',data:r
        })
    })
})


module.exports = router